//导入封装好的service
import service from '../utils/request'

//User____________________________________________________10
//登录
export function user_login(obj={}){
    return service.post('/api/user/login',obj)
}

//注册
export function user_dofinishregister(obj={}){
    return service.post('/api/user/dofinishregister',obj)
}

//验证手机号是否被注册过
export function user_docheckphone(obj={}){
    return service.post('api/user/docheckphone',obj)
}

//获取用户信息
export function user_info(payload){
    return service.get('api/user/info',{params:payload})
}

//发送短信验证码
export function user_dosendmsgcode(obj={}){
    return service.post('api/user/dosendmsgcode',obj)
}

//验证短信验证码
export function user_docheckcode(obj={}){
    return service.post('api/user/docheckcode',obj)
}


//列表
export function index_catelist(payload){
    return service.get('/api/index/catelist',{params:payload})
}
//修改密码
export function user_updatePassword(payload){
    return service.get('api/user/updatePassword',{params:payload})
}
//绑定用户名
export function user_bindusername(payload){ 
    return service.get('api/user/bindusername',{params:payload})
}
